package com.dnkj.tclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Value("${server.port}")
    String port;
    @Value("${spring.application.name}")
    String name;

    @RequestMapping("/hi")
    public String home() {
        return "你好我是:" + name + "\n我的端口是:" + port;
    }
}
